import {Hono} from 'hono';
import {etfRouter} from '@/backend/routes/etf-router';
import {articleRouter} from '@/backend/routes/article-router';
import {kplRouter} from '@/backend/routes/kpl-router';
import {eastRouter} from '@/backend/routes/east-router';
import {toolsRouter} from '@/backend/routes/tools-router';
import {secuRouter} from '@/backend/routes/secu-router';
import {thsRouter} from "@/backend/routes/ths-router";

const apiRoot = new Hono()
    .basePath('/api')
    .route('/etf', etfRouter)
    .route('/article', articleRouter)
    .route('/kpl', kplRouter)
    .route('/east', eastRouter)
    .route('/ths', thsRouter)
    .route('/tools', toolsRouter)
    .route('/secu', secuRouter);

export default apiRoot;
